In Fposn_at_x_y do not allow internal window as argument.
authormartin rudalics <rudalics@gmx.at>
Thu, 23 Aug 2012 08:33:56 +0000 (10:33 +0200)
committermartin rudalics <rudalics@gmx.at>
Thu, 23 Aug 2012 08:33:56 +0000 (10:33 +0200)
* keyboard.c (Fposn_at_x_y): Do not allow internal window as
argument.

src/ChangeLog
src/keyboard.c

index ea28569959dd74599373be1f0594f5690326d814..9f00e82c05f0dc4f31191b64345b84aea36e0f14 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-23  Martin Rudalics  <rudalics@gmx.at>
+
+       * keyboard.c (Fposn_at_x_y): Do not allow internal window as
+       argument.
+
 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
index 3d4061accfc03362a25a502edb95b420518fff41..3e0ead7e4fba3897f754007418b7298f883a359c 100644 (file)
@@ -11251,7 +11251,7 @@ The `posn-' functions access elements of such lists.  */)
 
   if (WINDOWP (frame_or_window))
     {
-      struct window *w = decode_valid_window (frame_or_window);
+      struct window *w = decode_live_window (frame_or_window);
 
       XSETINT (x, (XINT (x)
                   + WINDOW_LEFT_EDGE_X (w)